window.onload = function () {
	let menuIcon = document.getElementById('menuIcon')
	let menuIconClose = document.getElementById('menuIcon-close')
	let navbarMenu = document.getElementsByClassName('navbar-menu')[0]
	//下拉菜单
	let downMenu = document.getElementById('downMenu')
	//菜单显现
	menuIcon.onclick = function () {
		downMenu.style.display = "block"
		//菜单导航
		navbarMenu.style.opacity = "0"
		//菜单按钮
		menuIcon.style.display = "none"
		menuIcon.style.animation = 'menuClose 500ms 1'
		//叉按钮
		menuIconClose.style.display = "block"
		menuIconClose.style.animation = 'menuBlock 500ms 1'
	}
	//菜单消失
	menuIconClose.onclick = function () {
		downMenu.style.display = "none"
		//菜单导航
		navbarMenu.style.opacity = "1"
		//菜单按钮
		menuIcon.style.display = "block"
		menuIcon.style.animation = 'menuBlock 500ms 1'
		//叉按钮
		menuIconClose.style.display = "none"
		menuIconClose.style.animation = 'menuClose 500ms 1'
	}
}
